<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta name="GENERATOR" content="PasDoc 0.10.0">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Crispy Plotter Documentation: AppUtils</title>
<link rel="StyleSheet" type="text/css" href="pasdoc.css">
</head>
<body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#FF0000">
<h1 class="unit">Unit AppUtils</h1>
<table class="sections wide_list">
<tr>
<td><a class="section"  href="#@Description">Description</a></td><td>uses</td><td><a class="section"  href="#@Classes">Classes, Interfaces, Objects and Records</a></td><td><a class="section"  href="#@FuncsProcs">Functions and Procedures</a></td><td><a class="section"  href="#@Types">Types</a></td><td><a class="section"  href="#@Constants">Constants</a></td><td>Variables</td></tr></table>
<a name="@Description"></a><h2 class="description">Description</h2>
<p>
Provides global application routines, mainly for restricting Crispy Plotter to one running instance only.</p>
<a name="@Uses"></a><h2 class="overview">Overview</h2>
<a name="@Classes"></a><h3 class="cio">Classes, Interfaces, Objects and Records</h3>
<table class="classestable wide_list">
<tr class="listheader">
<th class="itemname">Name</th>
<th class="itemdesc">Description</th>
</tr>
<tr class="list">
<td class="itemname">record&nbsp;<a class="bold"  href="AppUtils.TOpenFileRecord.html"><code>TOpenFileRecord</code></a></td>
<td class="itemdesc">Record that is used to send the open-file request to the first running instance</td>
</tr>
</table>
<a name="@FuncsProcs"></a><h3 class="summary">Functions and Procedures</h3>
<table class="summary wide_list">
<tr class="list">
<td class="itemcode"><code>procedure <b><a   href="AppUtils.html#WriteHandleToReg">WriteHandleToReg</a></b>(Handle: HWND);</code></td>
</tr>
<tr class="list2">
<td class="itemcode"><code>function <b><a   href="AppUtils.html#IsFirstInstance">IsFirstInstance</a></b>: Boolean;</code></td>
</tr>
<tr class="list">
<td class="itemcode"><code>function <b><a   href="AppUtils.html#GetFileParam">GetFileParam</a></b>(CmdLine: string): string;</code></td>
</tr>
</table>
<a name="@Types"></a><h3 class="summary">Types</h3>
<table class="summary wide_list">
<tr class="list">
<td class="itemcode"><code><b><a   href="AppUtils.html#POpenFileRecord">POpenFileRecord</a></b> = &circ;<a   href="AppUtils.TOpenFileRecord.html">TOpenFileRecord</a>;</code></td>
</tr>
</table>
<a name="@Constants"></a><h3 class="summary">Constants</h3>
<table class="summary wide_list">
<tr class="list">
<td class="itemcode"><code><b><a   href="AppUtils.html#CDSOpenFile">CDSOpenFile</a></b> = $100;</code></td>
</tr>
<tr class="list2">
<td class="itemcode"><code><b><a   href="AppUtils.html#LengthFileName">LengthFileName</a></b> = 4096;</code></td>
</tr>
</table>
<h2 class="description">Description</h2>
<h3 class="detail">Functions and Procedures</h3>
<table class="detail wide_list">
<tr class="list">
<td class="itemcode"><a name="WriteHandleToReg"></a><code>procedure <b>WriteHandleToReg</b>(Handle: HWND);</code></td>
</tr>
<tr><td colspan="1">
<p>
Writes a handle to the registry so another CP instance can contact this instance.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="itemcode"><a name="IsFirstInstance"></a><code>function <b>IsFirstInstance</b>: Boolean;</code></td>
</tr>
<tr><td colspan="1">
<p>
Returns true, if this instance is the first (and at its application start the only) instance of CP</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="itemcode"><a name="GetFileParam"></a><code>function <b>GetFileParam</b>(CmdLine: string): string;</code></td>
</tr>
<tr><td colspan="1">
<p>
Returns a file path of a function file requested to be openend (passed as command line argument).</p>
</td></tr>
</table>
<h3 class="detail">Types</h3>
<table class="detail wide_list">
<tr class="list">
<td class="itemcode"><a name="POpenFileRecord"></a><code><b>POpenFileRecord</b> = &circ;<a   href="AppUtils.TOpenFileRecord.html">TOpenFileRecord</a>;</code></td>
</tr>
<tr><td colspan="1">
&nbsp;</td></tr>
</table>
<h3 class="detail">Constants</h3>
<table class="detail wide_list">
<tr class="list">
<td class="itemcode"><a name="CDSOpenFile"></a><code><b>CDSOpenFile</b> = $100;</code></td>
</tr>
<tr><td colspan="1">
<p>
Constant for receiving file requests</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="itemcode"><a name="LengthFileName"></a><code><b>LengthFileName</b> = 4096;</code></td>
</tr>
<tr><td colspan="1">
<p>
Maximum length of file name for file requests</p>
</td></tr>
</table>
<hr noshade size="1"><span class="appinfo"><em>Generated by <a  target="_parent" href="http://pasdoc.sourceforge.net/">PasDoc 0.10.0</a> on 2007-09-13 21:24:24</em>
</span>
</body></html>
